#ifndef		_STC12C5A60S2_EEPROM_H
#define		_STC12C5A60S2_EEPROM_H	

//#include	"config.h"
#include "sys.h"

#define	Time1_ON_address	0x0000
#define	Time1_shi_address	0x0001
#define	Time1_fen_address	0x0002

#define	lanya_address	0x0003

#define	Time2_ON_address	0x0004
#define	Time2_shi_address	0x0005
#define	Time2_fen_address	0x0006

#define	zhendong_address	0x0007

#define	Time3_ON_address	0x0008
#define	Time3_shi_address	0x0009
#define	Time3_fen_address	0x000A

#define	shengyin_address	0x000B

#define	Time4_ON_address	0x000C
#define	Time4_shi_address	0x000D
#define	Time4_fen_address	0x000E

#define	Time5_ON_address	0x001F
#define	Time5_shi_address	0x002F
#define	Time5_fen_address	0x003F


void	EEPROM_read_n(u16 EE_address,u8 *DataAddress,u8 lenth);
void 	EEPROM_SectorErase(u16 EE_address);
void 	EEPROM_write_n(u16 EE_address,u8 *DataAddress,u8 lenth);


#endif